use "$path\datasets\rd_dataset.dta", clear
keep if in_rdd_sample==1
bysort gkz legislative_period (jahr): keep if _n==1
bysort legislative_period: egen count = count(gkz)
bysort legislative_period: keep if _n==1


graph bar count, over(jahr) ytitle(Municipalities)  blabel(total, size(medsmall)) ylabel(0 (300) 1600,  angle(horizontal))
graph export FigureA6/figureA6.pdf, replace


